const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: false,
  productionSourceMap: false,
  publicPath: "/", // 如果设置基础路径，会影响subPage，比如设置为/jason/，则subPage打开的地址变成了：/subPage/jason/，不符合预期，有问题
  // 打包生成两个页面
  pages: {
    index: {
      entry: "./src/main.js",
      template: "./public/index.html",
      filename: "index.html",
      title: "app1",
    },
    subPage: {
      entry: "./srcSub/main.js",
      template: "./public/indexSub.html",
      filename: "subPage.html",
      title: "app2",
    },
  },
});
